package com.ciko.code.type;

/**
 * 项目名称：association
 * 包名称：com.ciko.code.type
 * 类描述：
 * 创建人： wayne
 * 创建时间 2016/2/3 12:13.
 */
public enum  EmployeeEnum {
    TYPE0(0, "普通用户"),
    TYPE1(1, "客服经理"),
    TYPE2(2, "客户"),
    TYPE3(3, "系统管理员"),
    TYPE5(5, "总经理"),
    TYPE6(6, "机构正职"),
    TYPE7(7, "机构副职"),
    TYPE8(8, "部门正职"),
    TYPE9(9, "部门副职"),
    TYPE10(10, "普通员工"),
    TYPE11(11, "分公司中层干部、中心支公司及直属支公司班子成员"),
    TYPE12(12, "人力资源部"),
    TYPE13(13, "科长"),
    TYPE14(14, "分管总");

    private final int value;
    final String position;

    private EmployeeEnum(int type, String bankName) {
        this.value = type;
        this.position = bankName;
    }

    public final int getValue() {
        return this.value;
    }

    public final String getBankName() {
        return this.position;
    }

    public static String typeOfValue(int type) {
        for (EmployeeEnum c : EmployeeEnum.values()) {
            if (c.getValue() == type) {
                return c.getBankName();
            }
        }
        return "";
    }


}
